﻿/*****************************************************************//**
 * @file   VAOneXMLAdaptorAcousticsNCTRegularTrimLayer.h
 * @brief  VAOne读写适配器多层声学包层：常规板
 *
 * @author liuzhiyuan(liuzhiyuan@diso.cn)
 * @date   2024-11-05
 *********************************************************************/
#ifndef VAONEXMLADAPTORACOUSTICSNCTREGULARTRIMLAYER_H
#define VAONEXMLADAPTORACOUSTICSNCTREGULARTRIMLAYER_H

#include "FITKVAOneXMLIOAPI.h"
#include "FITKAbstractVAOneXMLAdaptor.h"
#include "FITK_Kernel/FITKCore/FITKCoreMacros.h"
#include "FITK_Kernel/FITKAdaptor/FITKIOAdaptorFactory.h"
#include "rapidxml.hpp"

namespace IO
{
    /**
     * @brief   VAOne读写适配器多层声学包层：常规板
     * @author  liuzhiyuan(liuzhiyuan@diso.cn)
     * @data    2024-11-05
     */
    class FITKVAOneXMLIOAPI VAOneXMLAdaptorAcousticsNCTRegularTrimLayer : public FITKAbstractVAOneXMLAdaptor
    {
        FITKCLASS(IO, VAOneXMLAdaptorAcousticsNCTRegularTrimLayer);
    public:
        /**
         * @brief   构造函数
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @data    2024-11-05
         */
        explicit VAOneXMLAdaptorAcousticsNCTRegularTrimLayer()= default;
        /**
         * @brief   析构函数
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @data    2024-11-05
         */
        ~VAOneXMLAdaptorAcousticsNCTRegularTrimLayer() = default;
        /**
         * @brief   适配器读数据
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool adaptR() override;
        /**
         * @brief   适配器写数据
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool adaptW() override;

    private:

        /**
         * @brief   读取多层声包层：常规层
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool readRegularTrimLayer();
        /**
         * @brief   写多层声包层：常规层
         * @return  是否执行成功
         * @author  liuzhiyuan(liuzhiyuan@diso.cn)
         * @date    2024-11-05
         */
        bool writeRegularTrimLayer();


    };
    Register2FITKIOAdaptorFactory(VAOneXML, Acoustics::FITKAcousticsNCTRegularTrimLayer, VAOneXMLAdaptorAcousticsNCTRegularTrimLayer)
}
#endif // VAONEXMLADAPTORACOUSTICSNCTREGULARTRIMLAYER_H
